import request from '@/utils/request'

// 查询工时提报列表
export function listWorkingHoursSubmission(query) {
  return request({
    url: '/gs/workingHoursSubmission/list',
    method: 'get',
    params: query
  })
}

// 查询工时提报详细
export function getWorkingHoursSubmission(id) {
  return request({
    url: '/gs/workingHoursSubmission/' + id,
    method: 'get'
  })
}

// 新增工时提报
export function addWorkingHoursSubmission(data) {
  return request({
    url: '/gs/workingHoursSubmission',
    method: 'post',
    data: data
  })
}

// 修改工时提报
export function updateWorkingHoursSubmission(data) {
  return request({
    url: '/gs/workingHoursSubmission',
    method: 'put',
    data: data
  })
}

// 删除工时提报
export function delWorkingHoursSubmission(id) {
  return request({
    url: '/gs/workingHoursSubmission/' + id,
    method: 'delete'
  })
}

// 工时提报审核
export function auditWorkingHoursSubmission(id) {
  return request({
    url: '/gs/workingHoursSubmission/auditWorkingHoursSubmission/' + id,
    method: 'post'
  })
}
